home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / p_man / cat3 / il_c / ilHwContext.z / ilHwContext
Encoding:
Text File  |  2002-10-03  |  9.2 KB  |  265 lines

  1.  
  2.  
  3.  
  4. iiiillllHHHHwwwwCCCCoooonnnntttteeeexxxxtttt((((3333))))     IIIImmmmaaaaggggeeeeVVVViiiissssiiiioooonnnn LLLLiiiibbbbrrrraaaarrrryyyy CCCC++++++++ RRRReeeeffffeeeerrrreeeennnncccceeee MMMMaaaannnnuuuuaaaallll     iiiillllHHHHwwwwCCCCoooonnnntttteeeexxxxtttt((((3333))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      iiiillllHHHHwwwwCCCCoooonnnntttteeeexxxxtttt - an OpenGL rendering context
  10.  
  11. IIIINNNNHHHHEEEERRRRIIIITTTTSSSS FFFFRRRROOOOMMMM
  12.      iflListItem
  13.  
  14. HHHHEEEEAAAADDDDEEEERRRR FFFFIIIILLLLEEEE
  15.      #include <il/ilCdefs.h>
  16.  
  17. CCCCLLLLAAAASSSSSSSS DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  18.      ilHwContext is used to manage creation and destruction of OpenGL
  19.      contexts.  Some basic attributes of the context can be queried.
  20.      ilHwContext is also responsible for recording the current state of the
  21.      context and provides methods for some state alterations.
  22.  
  23.      The ilHwContext shadows much of the OpenGL state. For maximum
  24.      performance, The enable/disable methods only make calls to OpenGL if the
  25.      requested state is different than the current OpenGL state.
  26.  
  27. CCCCLLLLAAAASSSSSSSS MMMMEEEEMMMMBBBBEEEERRRR FFFFUUUUNNNNCCCCTTTTIIIIOOOONNNN SSSSUUUUMMMMMMMMAAAARRRRYYYY
  28.      CCCCoooonnnntttteeeexxxxtttt mmmmaaaannnnaaaaggggeeeemmmmeeeennnntttt
  29.  
  30.      XXXX aaaattttttttrrrriiiibbbbuuuutttteeee qqqquuuueeeerrrriiiieeeessss
  31.  
  32.           Display* ilHwContextGetDisplay(ilHwContext *obj)
  33.           GLXContext ilHwContextGetContext(ilHwContext *obj)
  34.           VisualID ilHwContextGetVisualID(ilHwContext *obj)
  35.  
  36.      RRRReeeennnnddddeeeerrrriiiinnnngggg ccccaaaappppaaaabbbbiiiilllliiiittttiiiieeeessss qqqquuuueeeerrrriiiieeeessss
  37.  
  38.           int ilHwContextGetCapability(ilHwContext *obj)
  39.           int ilHwContextIsDirect(ilHwContext *obj)
  40.           int ilHwContextIsDoubleBuffer(ilHwContext *obj)
  41.           int ilHwContextIsStereo(ilHwContext *obj)
  42.           int ilHwContextNeedsFlush()
  43.  
  44.      CCCCoooommmmppppoooonnnneeeennnntttt ssssiiiizzzzeeee qqqquuuueeeerrrriiiieeeessss
  45.  
  46.           int ilHwContextGetAlphaSize(ilHwContext *obj)
  47.           int ilHwContextGetRedSize(ilHwContext *obj)
  48.           int ilHwContextGetGreenSize(ilHwContext *obj)
  49.           int ilHwContextGetBlueSize(ilHwContext *obj)
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. iiiillllHHHHwwwwCCCCoooonnnntttteeeexxxxtttt((((3333))))     IIIImmmmaaaaggggeeeeVVVViiiissssiiiioooonnnn LLLLiiiibbbbrrrraaaarrrryyyy CCCC++++++++ RRRReeeeffffeeeerrrreeeennnncccceeee MMMMaaaannnnuuuuaaaallll     iiiillllHHHHwwwwCCCCoooonnnntttteeeexxxxtttt((((3333))))
  71.  
  72.  
  73.  
  74.      SSSSttttaaaatttteeee aaaalllltttteeeerrrraaaattttiiiioooonnnn
  75.  
  76.           void ilHwContextSetBuffer(ilHwContext *obj, int buffEnables,
  77.                                     int read)
  78.           void ilHwContextSwapBuffers(ilHwContext *obj, Drawable drawable)
  79.  
  80.      IIIILLLL ttttoooo GGGGLLLL ttttrrrraaaannnnssssllllaaaattttiiiioooonnnnssss
  81.  
  82.      MMMMeeeetttthhhhooooddddssss ttttoooo sssseeeetttt GGGGLLLL ssssttttaaaatttteeee
  83.  
  84. FFFFUUUUNNNNCCCCTTTTIIIIOOOONNNN DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNNSSSS
  85.      ggggeeeettttAAAAllllpppphhhhaaaaSSSSiiiizzzzeeee(((())))
  86.  
  87.           int ilHwContextGetAlphaSize(ilHwContext *obj)
  88.  
  89.  
  90.           This method returns the actual alpha component size for this visual,
  91.           as seen by OpenGL.
  92.  
  93.      ggggeeeettttBBBBlllluuuueeeeSSSSiiiizzzzeeee(((())))
  94.  
  95.           int ilHwContextGetBlueSize(ilHwContext *obj)
  96.  
  97.  
  98.           This method returns the actual blue component size for this visual,
  99.           as seen by OpenGL.
  100.  
  101.      ggggeeeettttCCCCaaaappppaaaabbbbiiiilllliiiittttyyyy(((())))
  102.  
  103.           int ilHwContextGetCapability(ilHwContext *obj)
  104.  
  105.  
  106.           This method returns the rendering capabilities of this context as
  107.           defined by ilHwCapability in <il/ilHwConnection.h>.  These are
  108.           capabilities actually supported in hardware, not just emulated in
  109.           software.
  110.  
  111.      ggggeeeettttCCCCoooonnnntttteeeexxxxtttt(((())))
  112.  
  113.           GLXContext ilHwContextGetContext(ilHwContext *obj)
  114.  
  115.  
  116.           Returns the GLXContext for this ilHwContext.
  117.  
  118.      ggggeeeettttDDDDiiiissssppppllllaaaayyyy(((())))
  119.  
  120.           Display* ilHwContextGetDisplay(ilHwContext *obj)
  121.  
  122.  
  123.           Returns the X Display* for this context.
  124.  
  125.  
  126.  
  127.  
  128.  
  129.                                                                         PPPPaaaaggggeeee 2222
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136. iiiillllHHHHwwwwCCCCoooonnnntttteeeexxxxtttt((((3333))))     IIIImmmmaaaaggggeeeeVVVViiiissssiiiioooonnnn LLLLiiiibbbbrrrraaaarrrryyyy CCCC++++++++ RRRReeeeffffeeeerrrreeeennnncccceeee MMMMaaaannnnuuuuaaaallll     iiiillllHHHHwwwwCCCCoooonnnntttteeeexxxxtttt((((3333))))
  137.  
  138.  
  139.  
  140.      int ilHwContextGetGreenSize(ilHwContext *obj)
  141.  
  142.  
  143.  
  144.      This method returns the actual green component size for this visual, as
  145.      seen by OpenGL.
  146.  
  147.      ggggeeeettttRRRReeeeddddSSSSiiiizzzzeeee(((())))
  148.  
  149.           int ilHwContextGetRedSize(ilHwContext *obj)
  150.  
  151.  
  152.           This method returns the actual red component size for this visual,
  153.           as seen by OpenGL.
  154.  
  155.      ggggeeeettttVVVViiiissssuuuuaaaallllIIIIDDDD(((())))
  156.  
  157.           VisualID ilHwContextGetVisualID(ilHwContext *obj)
  158.  
  159.  
  160.           This method returns the X VisualID of this context.
  161.  
  162.      iiiissssDDDDiiiirrrreeeecccctttt(((())))
  163.  
  164.           int ilHwContextIsDirect(ilHwContext *obj)
  165.  
  166.  
  167.           This method returns TRUE if this context is a direct context.
  168.  
  169.      iiiissssDDDDoooouuuubbbblllleeeeBBBBuuuuffffffffeeeerrrr(((())))
  170.  
  171.           int ilHwContextIsDoubleBuffer(ilHwContext *obj)
  172.  
  173.  
  174.           This method returns true if this context supports double buffering.
  175.  
  176.      iiiissssSSSStttteeeerrrreeeeoooo(((())))
  177.  
  178.           int ilHwContextIsStereo(ilHwContext *obj)
  179.  
  180.  
  181.           This method returns true if this context supports stereo rendering.
  182.           nnnneeeeeeeeddddssssFFFFlllluuuusssshhhh(((())))
  183.  
  184.           int ilHwContextNeedsFlush(ilHwContext *obj)
  185.  
  186.  
  187.           This methods returns true if this context requires a flush when
  188.           switching to a _N_U_L_L context from this one.
  189.  
  190.  
  191.  
  192.  
  193.  
  194.  
  195.                                                                         PPPPaaaaggggeeee 3333
  196.  
  197.  
  198.  
  199.  
  200.  
  201.  
  202. iiiillllHHHHwwwwCCCCoooonnnntttteeeexxxxtttt((((3333))))     IIIImmmmaaaaggggeeeeVVVViiiissssiiiioooonnnn LLLLiiiibbbbrrrraaaarrrryyyy CCCC++++++++ RRRReeeeffffeeeerrrreeeennnncccceeee MMMMaaaannnnuuuuaaaallll     iiiillllHHHHwwwwCCCCoooonnnntttteeeexxxxtttt((((3333))))
  203.  
  204.  
  205.  
  206.      void ilHwContextSetBuffer(ilHwContext *obj, int buffEnables,
  207.                                int read)
  208.  
  209.  
  210.  
  211.      This method sets the drawing buffer enables as defined by _b_u_f_f_E_n_a_b_l_e_s.
  212.      Possible values can be formed by ORing the values ilFrontBuffer,
  213.      ilBackBuffer, ilLeftBuffer and ilRightBuffer that are defined in
  214.      <il/ilHwDefs.h>. If _r_e_a_d is _T_R_U_E then the OpenGL read buffer is set
  215.      instead of the draw buffer.  sssseeeettttPPPPoooossssttttCCCCoooonnnnvvvvBBBBiiiiaaaassss(((())))
  216.  
  217.      sssswwwwaaaappppBBBBuuuuffffffffeeeerrrrssss(((())))
  218.  
  219.           void ilHwContextSwapBuffers(ilHwContext *obj, Drawable drawable)
  220.  
  221.  
  222.           This method performs a glXSwapBuffers on the context.
  223.  
  224. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  225.      ilHwConnection(3), ilHwVisual(3), iflListItem(3)
  226.  
  227.  
  228.  
  229.  
  230.  
  231.  
  232.  
  233.  
  234.  
  235.  
  236.  
  237.  
  238.  
  239.  
  240.  
  241.  
  242.  
  243.  
  244.  
  245.  
  246.  
  247.  
  248.  
  249.  
  250.  
  251.  
  252.  
  253.  
  254.  
  255.  
  256.  
  257.  
  258.  
  259.  
  260.  
  261.                                                                         PPPPaaaaggggeeee 4444
  262.  
  263.  
  264.  
  265.